<template>
	<view class="service-container">
		<view class="service-body" v-for="(item,index)  in listData" :key="index" @click="Pageservice(item)" >
			<view class="left-content">
				<view class="conten-img">
					<image :src="item.img" mode="widthFix"></image>
				</view>
			</view>
			<view class="right-content">
				<view class="content-text">
					<text>{{item.text1}}</text>
					<text>{{item.text2}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				listData: [{
						text1: "理发",
						text2: "按照残疾人需求,为老人上门理发。",
						img: "../../../static/img/lifajiandao.png",
						introduce:"尽快恢复速度快链接顾客科技城国际放得开奋达科技六宫粉黛女客户家，诶来看是否合法了解"
					},
					{
						text1: "助医",
						text2: "陪同残疾人到医院就诊。",
						img: "../../../static/img/doctor.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
					{
						text1: "洗涤",
						text2: "对床单、衣物等进行分类清洗并晾晒。",
						img: "../../../static/img/xidi.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
					{
						text1: "助浴",
						text2: "帮助残疾人洗澡清洗。",
						img: "../../../static/img/xizaomuyu.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
					{
						text1: "个人助理",
						text2: "协助残疾人整理个人卫生。",
						img: "../../../static/img/anquanhuli.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
					{
						text1: "精神慰藉",
						text2: "与残疾人保持良性互动,调节心理状况。",
						img: "../../../static/img/caozuo-kangfuxunlian.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
					{
						text1: "康复训练",
						text2: "制定规范的家庭康复训练计划。",
						img: "../../../static/img/kangfuxunlian.png",
						introduce:"阿双方均按时付款计划发你什么，诶来看是否合法了解"
					},
				]
			}
		},
		methods: {
			Pageservice(item) {
				console.log(item)
				uni.navigateTo({
					
					url: "../Lifa/Lifa?text1=" + item.text1+'&text2='+item.text2+'&introduce='+item.introduce
					
					
				})
			}
		}
	}
</script>

<style>
	.service-container {
		flex-direction: column;
		width: 100%;
		display: flex;
		align-items: center;
	}

	.service-body {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 90%;
		height: 65px;
        margin-top: 10px;
		margin-bottom: 8px;
		box-shadow: 0 0 4px #555153;
		border-radius: 4px;
	}

	.left-content {
		width: 200rpx;
	}

	.right-content {
		min-width: 0;
		flex: 1;
	}

	.conten-img {
		width: 50px;
		height: 50px;
		border: 1px solid #007AFF;
		border-radius: 50px;
		background-color: #007AFF;
	}

	image {
		width: 100%;
		height: 100%;

	}

	.content-text {
		flex-direction: column;
		display: flex;
	}
</style>
